Controlling circuit for an LED driver and controlling method thereof

ABSTRACT

The present invention relates to a controlling circuit and controlling method for an LED driver implemented as a flyback topology. The controlling circuit may be at a primary side of a transformer of the LED driver, and include a sampling circuit, an on time sensing circuit of an output diode, a regulating signal generator, and a PWM controller. The sampling circuit may generate a sampling signal indicating output current by sampling at the primary transformer side. The on time sensing circuit can detect an on time of the output diode. The regulating signal generator can generate a regulating signal by regulating the sampling signal, a voltage reference, and the on time of the output diode. The PWM controller may generate a controlling signal to control operation of a switching device of the LED driver to maintain a substantially constant output current in accordance with the regulating signal.

RELATED APPLICATIONS

This application claims the benefit of Chinese Patent Application No. CN201010619845.0, filed on Dec. 30, 2010, which is incorporated herein by reference in its entirety.

FIELD OF THE INVENTION

The present invention generally pertains to electronic circuits, and more particularly to a controlling circuit and method of controlling driver for a light emitting diode (LED).

BACKGROUND

With rapid development and continuous innovation in the lighting industry, and the growing importance of energy savings and environmental protection, LED lighting rapidly developed as an important lighting technology. However, the luminance of LED lighting (associated with the parameter of luminance intensity) is in direct proportion with the current and forward voltage drop of the LED, and is also varied with temperature. Therefore, a constant current generator may be necessary to drive the LED. Conventional constant current typically use an optical coupler, voltage reference, and sensing circuit as part of an output regulating circuit.

However, such conventional constant current generators have several drawbacks. For example, optical coupler may deteriorate over time, and the transfer ratio of current may decay, resulting in a disadvantageous effect on the stability and life for some applications. Also, increased space may be occupied, resulting in increased costs due to the large number of devices, which also may result in relatively low reliability. Further, the sensing circuit usage may result in increased power loss and lower efficiency. Therefore, conventional LED drivers may not meet the needs of smaller size, higher efficiency, and increased energy savings.

SUMMARY

In view of the above-mentioned limitations, particular embodiments may provide a primary sided controlling circuit and controlling method that employs a direct sampling signal of primary side of the transformer to simplify the circuit structure and improve the efficiency.

In one embodiment, a controlling circuit for a light-emitting diode (LED) driver may include a transformer, an output diode arranged at a secondary side of the transformer, and a switching device arranged at a primary side of the transformer to form a flyback topology, where the controlling circuit is arranged at the primary side of the transformer. The controlling circuit can include: (i) a sampling circuit configured to generate a sampling signal that indicates an output current signal of the LED driver at the primary side of the transformer; (ii) an on time sensing circuit configured to sense an on time of the output diode; (iii) a regulating signal generator configured to regulate the sampling signal, a voltage reference that is directly proportional to an expected output current of the LED driver, and the on time of the output diode, where the sampling signal and the on time of the output diode are in direct proportion with the voltage reference and in inverse proportion with a switching cycle, and where the regulating signal generator is configured to generate a regulating signal; and (iv) a pulse-width modulation (PWM) controller configured to generate a controlling signal to control operation of the switching device of the LED driver based on the regulating signal to maintain a substantially constant output current of the LED driver.

In one embodiment, a controlling method for an LED driver configured in a flyback topology, can include: (i) sampling current flowing through a primary side of a transformer of the LED driver by a sensing resistor arranged in series with a switching device at the primary side of the LED driver, and generating a sensing voltage signal in response thereto; (ii) sampling and holding the sensing voltage signal to obtain a peak value of the sensing voltage signal; (iii) generating an averaging signal from the peak value of the sensing voltage signal, a voltage reference, and an on time of output diode of the LED driver; (iv) generating a regulating signal by compensating the averaging signal; and (v) generating a controlling signal based on the regulating signal to control operation of the switching device of the LED driver to maintain a substantially constant output current.

In one embodiment, a controlling method for an LED configured in a flyback topology, can include: (i) sampling current flowing through a primary side of a transformer of the LED driver by a sensing resistor arranged in series with a switching device at the primary side of the LED driver, and generating a sensing voltage signal in response thereto; (ii) averaging the sensing voltage signal in accordance with an on time of an output diode and a switching cycle to generate an averaging signal; (iii) calculating an error between the averaging signal and a voltage reference to generate an error signal; (iv) generating a regulating signal by compensating the error signal; and (v) generating a controlling signal to control operation of a switching device of the LED driver based on the regulating signal to maintain a substantially constant output of the LED driver.

Embodiments of the present invention can advantageously provide several advantages over conventional approaches, due to only the primary side of the transformer being employed without an optical coupler and output sensing circuit of the feedback loop. For example, the stability and operating life may be increased due to the non-participation of an optical coupler. In addition, less space, lower cost, and higher reliability can be achieved due to using fewer devices, and higher efficiency may be achieved as a result. Other advantages of the present invention will become readily apparent from the detailed description of preferred embodiments below.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic diagram of a conventional LED driver employing secondary sided controlling scheme.

FIG. 2 is a schematic diagram of a first example controlling circuit of an LED driver in accordance with embodiments of the present invention.

FIG. 3A is a schematic diagram of a second example controlling circuit of an LED driver in accordance with embodiments of the present invention.

FIG. 3B shows operation waveform examples of the controlling circuit of an LED driver of FIG. 3A.

FIG. 4 is a schematic diagram of the first example regulating signal generator of controlling circuit for an LED drive in accordance with embodiments of the present invention.

FIG. 5 is a schematic diagram of the second example regulating signal generator of controlling circuit for an LED drive in accordance with embodiments of the present invention.

FIGS. 6, 7, and 8 are flow diagrams of example controlling methods for an LED driver in accordance with embodiments of the present invention.

DETAILED DESCRIPTION

Reference will now be made in detail to particular embodiments of the invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with the preferred embodiments, it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents that may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description of the present invention, numerous specific details are set fourth in order to provide a thorough understanding of the present invention. However, it will be readily apparent to one skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, processes, components, structures, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the present invention.

Some portions of the detailed descriptions which follow are presented in terms of processes, procedures, logic blocks, functional blocks, processing, schematic symbols, and/or other symbolic representations of operations on data streams, signals, or waveforms within a computer, processor, controller, device and/or memory. These descriptions and representations are generally used by those skilled in the data processing arts to effectively convey the substance of their work to others skilled in the art. Usually, though not necessarily, quantities being manipulated take the form of electrical, magnetic, optical, or quantum signals capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer or data processing system. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, waves, waveforms, streams, values, elements, symbols, characters, terms, numbers, or the like.

Furthermore, in the context of this application, the terms “wire,” “wiring,” “line,” “signal,” “conductor,” and “bus” refer to any known structure, construction, arrangement, technique, method and/or process for physically transferring a signal from one point in a circuit to another. Also, unless indicated otherwise from the context of its use herein, the terms “known,” “fixed,” “given,” “certain” and “predetermined” generally refer to a value, quantity, parameter, constraint, condition, state, process, procedure, method, practice, or combination thereof that is, in theory, variable, but is typically set in advance and not varied thereafter when in use.

Embodiments of the present invention can advantageously provide several advantages over conventional approaches, due to only the primary side of the transformer being employed without an optical coupler and output sensing circuit of the feedback loop. For example, the stability and operating life may be increased due to the non-participation of an optical coupler. In addition, less space, lower cost, and higher reliability can be achieved due to using fewer devices, and higher efficiency may be achieved as a result. The invention, in its various aspects, will be explained in greater detail below with regard to exemplary embodiments.

Referring now to FIG. 1, a schematic diagram of a conventional off line light-emitting diode (LED) driver with constant current controlling scheme is depicted. In this example, an isolated flyback converter may include transformer 101, power switching device 102, pulse-width modulation (PWM) controller 103, and optical coupler 104, as well as an additional regulating circuit for the output current.

To maintain the output current of the LED driver to a substantially constant predetermined value under varied conditions, the output voltage of the secondary side of transformer 101 may be detected, and then compared against a voltage reference to generate an error signal. The error signal may then be transferred to the PWM controller 103 at the primary side of transformer 101 by optical coupler 104, and then used to control the duty cycle of power switching device 102. The output current can recover to the initial predetermined value by way of the control for operation of power switching device 102 implemented by the controlling circuit at the primary side, in spite of variations of the output current of LED driver.

However, the optical coupler may deteriorate over time, and the transfer ratio of current may decay, resulting in a disadvantageous effect on the stability and life for some applications. Also, increased space may be occupied by the circuit of FIG. 1, resulting in increased costs due to the relatively large number of devices, which also may result in relatively low reliability. Further, the sensing circuit usage may result in increased power loss and lower efficiency. Therefore, LED drivers as shown in the particular example of FIG. 1 may not meet the needs of smaller size, higher efficiency, and increased energy savings.

Referring now to FIG. 2, an example controlling circuit for an LED driver in accordance with embodiments of the present invention is shown. This particular example shows a flyback topology implementation, but other topologies are also accommodated in particular embodiments. In this example, an external AC input voltage may be received by an electromagnetic interference (EMI) circuit and a rectifier bridge and/or power factor correction (PFC), and then be transferred to the primary side (Np) of transformer 201.

Switching device 202 may be coupled to the primary winding of transformer 201, and controlled by controlling circuit 200. Output diode 203 and output capacitor 204 can be coupled the secondary winding (Ns) of transformer 201, in order to provide a substantially constant output current to drive the LED. Controlling circuit 200 can include sampling circuit 205 arranged at the primary side of transformer 201 to sample the current information at the primary side. Controlling circuit 200 can also include on time sensing circuit of output diode 206 at the secondary side of transformer 201 to sense the on time of output diode 203.

Controlling circuit 200 can also include regulating signal generator 207 to regulate the received sampling signal Vsample of sampling circuit 205, voltage reference Vref, and on time of output diode Tdis. Regulating signal generator 207 may substantially guarantee that sampling signal Vsample and on time of output diode Tdis are in direct proportion with voltage reference Vref, and are in inverse proportion with switching cycle T, and as a result to generate a regulating signal. This regulating signal may then be supplied to pulse-width modulation (PWM) controller 208.

PWM controlling circuit 208 can generate a controlling signal in accordance with the received regulating signal to control operation of switching device 202 of the LED driver to maintain a substantially constant output current. Here, voltage reference V_(ref) is directly proportional with expected output current I₀.

In particular embodiments, the controlling may be operated by direct use of a sampling signal at the primary side of transformer 201, without having to sample and output at the secondary side of transformer 201. In the LED driver example of FIG. 2, which takes advantages of simplified circuit structure, a relatively low cost and more efficient LED driver can be produced.

Referring now to FIG. 3A, a controlling circuit for an LED driver in accordance with embodiments of the present invention is shown as a flyback topology implementation. In this particular example, sensing resistor 305 can connect in series with switching device 202, for use as the sampling circuit. Sensing voltage Vcs between the two terminals of sensing resistor 305 May be transferred to regulating signal generator 207. Subsidiary winding 306 and differential capacitor 307 can connect in series to form the on time sensing circuit of output diode 206. Subsidiary winding 306 can be used to obtain the current information of secondary winding of transformer 201. In addition, on time of output diode 203 can be achieved by detecting the voltage Vcd of differential capacitor 307.

Referring also to FIG. 3B in conjunction with FIG. 3A, example operation waveforms associated with the LED driver of FIG. 3A are shown. During an on time T_(on) of switching device 202, the input voltage may be supplied to primary winding Np, and current through the primary winding and switching device 202 can increase linearly from zero to peak value Ippk. Energy of input terminal may then be transferred to primary winding Np.

During an off time of switching device 202, energy stored in the primary winding can push output diode 203 to be turned on, and current of output diode 203 may decrease from peak value Ispk to zero linearly during the on time of output diode 203, Tdis. During an off time of switching device 202, current through output diode 203 can be represented on subsidiary winding 306, which can be detected by differential capacitor 306 (see, e.g., waveform labeled Vcd).

When the A to B segment of waveform Vcd is detected, signal Vcd can be the chosen as the rising edge of the on time of output diode Tdis. When the B to C segment of waveform Vcd is detected, signal Vcd can be chosen as the failing edge of the on time of output diode Tdis. In this way, on time Tdis may be achieved as shown.

In accordance with Ampere's Law, and assuming that the turns of the primary side of the transformer are np and turns of the secondary side of the transformer are ns, a relationship between a peak value of output current Ispk and a peak value of primary side Ippk can be as indicated below in Equation 1.

$\begin{matrix} {I_{spk} = {\frac{n_{p}}{n_{s}} \cdot I_{ppk}}} & (1) \end{matrix}$

Output current I₀ may be equal to and average current of output diode 203 during a switching cycle in a constant output current mode, and output current I₀ can be calculated as in Equation 2.

$\begin{matrix} {I_{0} = {\frac{1}{2}{I_{Spk} \cdot T_{dis} \cdot \frac{1}{T}}}} & (2) \end{matrix}$

If parameter Ispk is substituted in Equation 1, output current I₀ can be calculated as shown below in Equation 3.

$\begin{matrix} {I_{o} = {\frac{1}{2} \cdot \frac{n_{p}}{n_{s}} \cdot I_{ppk} \cdot \frac{T_{dis}}{T}}} & (3) \end{matrix}$

Here, sensing resistor 305 as sensing circuit may be arranged at the primary side of transformer 201 to detect the peak current value of the primary side of the transformer, Ippk. If the resistance of sensing resistor is Rs and the peak value of the sensing voltage between the two terminals of sensing resistor 305 is Vcspk, the peak current of the primary side of transformer 201 can be calculated as in Equation 4.

$\begin{matrix} {I_{ppk} = \frac{V_{cspk}}{R_{s\;}}} & (4) \end{matrix}$

In addition, output current I₀ can be determined from Equation 5.

$I_{0} = {\frac{1}{2} \cdot \frac{n_{p}}{n_{s}} \cdot \frac{V_{cspk}}{R_{s}} \cdot \frac{T_{dis}}{T}}$

If voltage signal

$V_{X} = \frac{V_{cspk} \cdot T_{dis}}{T}$ can be fixed on the precondition of fixed turns of primary winding np, fixed turns of secondary winding ns, and fixed sensing resistance Rs, output current Io can be substantially constant. Therefore, the regulations of received sampling signal Vcs of sensing resistor 305, voltage reference Vref, and on time of output diode 203 Tdis, of on time sensing circuit 206 can ensure that voltage signal

$\frac{V_{cspk} \cdot T_{dis}}{T}$ maintains a substantially constant value in direct proportion with voltage reference Vref, and may also generate a regulating signal therefrom. Further, sampling signal Vcspk and on time of output diode Tdis may be directly proportional with voltage reference Vref, and inversely proportional with switching cycle T.

The value of voltage reference Vref may be predetermined in accordance with expected output current I₀, resistance Rs of sensing resistor 305, turns of both primary winding np, and secondary winding ns following Equation 6.

$\begin{matrix} {V_{ref} = \frac{2 \cdot I_{0} \cdot R_{s} \cdot n_{s}}{n_{p}}} & (6) \end{matrix}$

From the above Equations 5 and 6, by the predetermination of voltage reference Vref, and regulation of regulating signal generator 207, voltage signal

$\frac{V_{cspk} \cdot T_{dis}}{T}$ may be in direct proportion with expected output current I₀.

PWM controller 208 can generate a controlling signal in accordance with the received regulating signal to control operation of switching device 202 in order to maintain a substantially constant output current I₀ of the LED driver.

In this way, controlling can be operated by direct use of a sampling signal of the primary side of transformer without sampling of the output at the secondary, as shown in the LED driver depicted in FIG. 2. This approach takes advantage of a simplified circuit structure, with lower cost, and higher efficiency of the LED driver.

Referring now to FIG. 4, shown is an example of regulating signal generator 207 of the LED driver discussed above with reference to FIGS. 2 and 3A, and in accordance with embodiments of the present invention. Regulating signal generator 207 can include sampling and holding circuit 401 to receive sensing voltage signal Vcs and to obtain the peak value Vcspk of the sensing voltage signal Vcs. Sampling and holding circuit 401 can include error amplifier A1, switching transistor M1, and sampling and holding capacitor C1.

As shown in FIG. 3B, at the conversion moment from an on status to an off status of switching device 202, or the falling edge of the PWM controlling signal, a single pulse Psam may be generated to control turn on of switching transistor M1. Then, peak value of sensing voltage signal Vcspk can be detected to indicate the maximum current Ispk of output diode 203 and a peak value of primary winding of transformer 201.

Current reference generator 402 can include error amplifier A2, switching transistor M2, and resistor R1. A positive terminal of error amplifier A2 can be coupled to voltage reference Vref, and a negative terminal of error amplifier A2 can be coupled to a common node of resistor R1 and switching transistor M2. The other terminal of resistor R1 can be connected to ground, and an output terminal of error amplifier A2 can be connected to switching transistor M2. Current reference Iref may then be generated through resistor R1, and the value of which can be calculated as in Equation 7.

$\begin{matrix} {I_{ref} = \frac{V_{ref}}{R_{1}}} & (7) \end{matrix}$

Current mirror 406 can be coupled to current reference generator 402 at a first terminal to mirror current reference Iref, and to generate mirroring current at the second terminal.

Sampling current generator 403 can include error amplifier A3, switching transistor M3, and resistor R2. A positive terminal of error amplifier A3 can be coupled to sampling and holding circuit 401 to receive signal Vcspk, while a negative terminal of error amplifier A3 may be coupled to a common node of resistor R2 and switching transistor M3. The other terminal of resistor R2 can be connected to ground, and an output terminal of error amplifier A3 may be coupled to switching transistor M3. Therefore, sensing current Isample can be generated through resistor R2, the value of which can be calculated as below in Equation 8.

$\begin{matrix} {I_{sample} = \frac{V_{cspk}}{R_{2}}} & (8) \end{matrix}$

One terminal of switching transistor 404 may be coupled to an output terminal of current mirror 406, while the other terminal of which may be coupled to an output terminal of sampling current generator 403. In operation, switching transistor 404 can be controlled by an on time of output diode 203, T_(dis).

Compensation circuit 405 can include resistor R3 and capacitor C2 connected in series between common node A′ of both switching transistor 404 and current mirror 406, and ground to compensate current of common node A′.

Therefore, Equation 9 can be derived as shown below.

$\begin{matrix} {{\frac{V_{ref} \cdot T}{R_{1}} - \frac{V_{cspk} \cdot T_{dis}}{R_{2}}} = 0} & (9) \end{matrix}$

That is, as shown below in Equation 10.

$\begin{matrix} {{V_{ref} \cdot \frac{R_{2}}{R_{1}}} = {V_{cspk} \cdot \frac{T_{dis}}{T}}} & (10) \end{matrix}$

Thus, voltage signal

$V_{cspk} \cdot \frac{T_{dis}}{T}$ may be directly proportional with voltage reference Vref. Also, voltage reference Vref can be predetermined as indicated below in Equation 11.

$\begin{matrix} {V_{ref} = \frac{2 \cdot I_{0} \cdot R_{s} \cdot n_{s}}{n_{p}}} & (11) \end{matrix}$

Here, parameter I₀ indicates expected output current of the LED driver, Rs indicates resistance of sensing resistor 305, np indicates turns of primary winding of transformer, and ns indicates turns of secondary winding.

With reference to Equations 10 and 11, a voltage signal can be in direct proportion with voltage reference Vref through the predetermination of voltage reference and regulation of regulating signal generator 207.

PWM controller 208 can be used to generate a controlling signal to control the operation of switching device 202 of the LED driver in accordance with received regulating signal COMP in order to maintain output current I0 as substantially constant.

Referring now to FIG. 5, shown is an example of regulating signal generator 207 as in FIGS. 2 and 3A, and in accordance with embodiments of the present invention. In this example of FIG. 5, regulating signal generator 207 can include sampling and holding circuit 501 to sample and hold received sensing voltage Vcs of resistor 305, in order to obtain a peak value of sensing voltage, Vcspk. The peak value of sensing voltage, Vcspk, can be generated by sampling and holding circuit 401 as discussed above with reference to FIG. 4, or any other suitable type of sampling and holding circuit.

Averaging circuit 502 may average the peak value of sensing voltage Vcspk to obtain an averaging signal Vavg. Averaging circuit 502 can include switch S1, switch S2, resistor R4, and capacitor C3. Switch S1, resistor R4, and capacitor C3 may be connected in series between the output terminal of sampling and holding circuit 501 and ground. One terminal of switch S2 can be connected to a common node of switch S1 and resistor R4.

The operation of switch S1 may be controlled by an on time of output diode 203 to be substantially consistent with an on status of output diode 203. The operation of switch S2 can be controlled by an off time of output diode 203 to be substantially consistent with an off status of output diode 203. The value of the averaging signal Vavg on the common node (B) between resistor R4 and capacitor C3 can be calculated as indicated below in Equation 12.

$\begin{matrix} {V_{avg} = \frac{V_{cspk} \cdot T_{dis}}{T}} & (12) \end{matrix}$

Error amplifier 503 may be used to compare the received averaging signal Vavg and the voltage reference Vref. Compensation circuit 504 can include capacitor C4 and resistor R5, and may be used to compensate the output of error amplifier 503, to output the regulating signal COMP.

The operating principle of error amplifier 503 may support Equation 13 as below. V _(ref) =V _(avg)  (13)

If parameter Vref is substituted into Equation 12, voltage reference Vref can be calculated as indicated below in Equation 14.

$\begin{matrix} {V_{ref} = {V_{cspk} \cdot \frac{T_{dis}}{T}}} & (14) \end{matrix}$

As such, voltage signal

$V_{cspk} \cdot \frac{T_{dis}}{T}$ can be in direct proportion with voltage reference V_(ref), which may be predetermined in accordance with expected output current I₀ of the LED driver, a resistance of sensing resistor 305, turns of primary winding np, and turns of secondary winding ns, consistent with Equation 11 above.

From the preceding Equations 11 and 14, both the predetermination of voltage reference Vref and the regulation of regulating signal generator 207 may carry out a direct proportion between voltage signal

$V_{cspk} \cdot \frac{T_{dis}}{T}$ and voltage reference V_(ref), and PWM controller 208 may be used to generate a controlling signal to control operation of switching device 202 of the LED driver to maintain a substantially constant output current in accordance with received regulating signal COMP.

Referring now to FIG. 6, shown is a flow diagram of a first example controlling method for an LED driver in accordance with embodiments of the present invention is shown. At S601, sampling can be performed at the primary side of the transformer of the LED driver to generate a sampling signal indicating an output current at the secondary side.

At S602, the received sampling signal, a voltage reference, and an on time of an output diode at the secondary side of the transformer may be regulated to ensure that the sampling signal and the on time of output diode are directly proportional with voltage reference Vref, and in inverse proportion with the switching cycle to generate a regulating signal, where the voltage reference may be in direct proportion with an expected output current of the LED driver.

At S603, a controlling signal may be generated to control the operation of a switching device of the LED driver to maintain a substantially constant output current in accordance with the regulating signal by the PWM controller.

Referring now to FIG. 7, shown is flow diagram of a second example controlling method for an LED driver in accordance with embodiments of the present invention. At S701, a sensing resistor connected in series with a switching device at the primary side of the LED driver may be used to sample the output current of the primary winding, and to generate a sensing voltage signal.

At S702 the sensing voltage signal may be sampled and held to generate a peak value of the sensing voltage signal. At S703, an averaging signal may be generated in accordance with the received peak value of the sensing voltage signal, a voltage reference, and an on time of output diode. At S704, the averaging signal may be compensated to generate a regulating signal.

At S705, a controlling signal may be generated to control the operation of a switching device of the LED driver in accordance with the regulating signal by the PWM controller. For example, generation of an averaging signal can include generating a current voltage in accordance with the voltage reference, generating a peak value of sampling current in accordance with the sensing voltage signal, generating the averaging signal in accordance with the received peak value of sensing current, the current reference, and on time of output diode

Referring now to FIG. 8, shown is a flow diagram of a third example controlling method for an LED driver in accordance with embodiments of the present invention. At S801, a sensing resistor connected in series with a switching device at the primary side of LED driver may be used to sample the output current of the primary winding, and to generate a sensing voltage signal.

At S802, the sensing voltage signal may be averaged to generate an averaging signal in accordance with the switching cycle and on time of the output diode. At S803, the error between the averaging signal and a voltage reference may be calculated to generate an error signal. At S804, the error signal may be compensated to generate a regulating signal.

At S805, a controlling signal may be generated to control the operation of the switching device of the LED driver to maintain a substantially constant output current in accordance with the regulating signal by the PWM controller. The voltage reference may be in direct proportion with an expected output current, a resistance of sensing resistor, and turns of primary winding, and in inverse proportion with the turns of primary winding. Also, the averaging signal may be in direct proportion with the sensing voltage and an on time of output diode, and inversely proportional with the switching cycle.

In this fashion, LED driver controlling can be performed by direct use of a sampling signal of the primary side of the transformer without sampling of the output at the secondary side of the transformer. Thus, provided is a controlling circuit and controlling method for an LED driver, which takes advantages of substantially constant and stable output current, simplified circuit structure, lower cost and improved efficiency LED driver.

The foregoing descriptions of specific embodiments of the present invention have been presented through images and text for purpose of illustration and description of the LED driver controller circuit and method. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed, and obviously many modifications and variations are possible in light of the above teaching, such as the alternatives of the type of switching device, on time sensing circuit of output diode, controlling of switching device and sampling and holding circuit for different applications.

The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims appended hereto and their equivalents. 

What is claimed is:
 1. A controlling circuit for a light-emitting diode (LED) driver, said LED driver having a transformer, an output diode arranged at a secondary side of said transformer, and a switching device arranged at a primary side of said transformer to form a flyback topology, wherein said controlling circuit is arranged at said primary side of said transformer, said controlling circuit comprising: a) a sampling circuit configured to generate a sampling signal that indicates an output current signal of said LED driver at said primary side of said transformer; b) an on time sensing circuit configured to sense an on time of said output diode; c) a regulating signal generator configured to regulate said sampling signal, a voltage reference that is directly proportional to an expected output current of said LED driver, and said on time of said output diode, wherein said sampling signal and said on time of said output diode are in direct proportion with said voltage reference and in inverse proportion with a switching cycle, and wherein said regulating signal generator is configured to generate a regulating signal; and d) a pulse-width modulation (PWM) controller configured to generate a controlling signal to control operation of said switching device of said LED driver based on said regulating signal to maintain a substantially constant output current of said LED driver.
 2. The controlling circuit of claim 1, wherein said on time sensing circuit comprises: a) a subsidiary winding to generate a signal indicating said output current at said secondary side of said transformer; and b) a differential capacitor coupled in series with said subsidiary winding configured to detect said on time of said output diode.
 3. The controlling circuit of claim 1, wherein said sampling circuit comprises a sensing resistor coupled in series with said switching device at said primary side of said transformer, said sampling circuit being configured to convert current flowing through said primary side of said transformer to a sensing voltage signal.
 4. The controlling circuit of claim 3, wherein said regulating signal generator comprises: a) a sampling and holding circuit configured to receive said sensing voltage signal, and to determine a peak value of said sensing voltage signal; b) an averaging circuit comprising a switching transistor configured to receive said peak value of said sensing voltage signal, said voltage reference, and said on time of output diode, wherein an operation of said switching transistor is consistent with on and off conditions of said output diode; and c) a compensation circuit configured to generate said regulating signal in accordance with an output of said averaging circuit, and being configured to control operation of said switching device of said LED driver, wherein said voltage reference is directly proportional to said output current and turns of a secondary winding of said transformer, and inversely proportional to turns of a primary winding.
 5. The controlling circuit of claim 4, wherein said averaging circuit comprises: a) a current reference generator configured to generate a current reference based on said voltage reference; and b) a peak value of said sampling current generator determiner that is configured to generate a peak value of said sampling current based on said sensing voltage signal.
 6. The controlling circuit of claim 3, wherein said regulating signal generator comprises: a) a sampling and holding circuit configured to receive said sensing voltage signal, and to determine a peak value of said sensing voltage signal; b) an averaging circuit configured to average said peak of said sensing voltage signal in accordance with said on time of said output diode, and to generate an averaging signal; c) an error amplifier configured to receive said averaging signal and said voltage reference, and to output an error signal; and d) a compensation circuit configured to compensate said error signal, wherein an output of said compensation circuit is configured to be used as said regulating signal to control operation of said switching device of said LED driver.
 7. The controlling circuit of claim 6, wherein: a) said voltage reference is in direct proportion with said output current and turns of a secondary winding of said transformer, and in inverse proportion with turns of a primary winding; and b) said averaging signal is in direct proportion with said on time of said output diode and said peak value of sensing voltage signal, and in inverse proportion with said switching cycle.
 8. The controlling circuit of claim 6, wherein: a) said averaging circuit comprises a first switch, a second switch, a resistor, and a capacitor; b) a first terminal of said first switch is coupled to receive said peak value of said sensing voltage signal, and a second terminal of said first switch is coupled to a first terminal of said resistor and a first terminal of said second switch, a second terminal of said second switch being coupled to ground; and c) a second terminal of said resistor and a first terminal of said capacitor are coupled to an average node, and a second terminal of said capacitor is coupled to ground, d) wherein said first switch is configured to be turned on when said output diode is on, and said second switch is configured to be turned off when said output diode is off.
 9. A controlling method for a light-emitting diode (LED) driver configured in a flyback topology, the method comprising: a) sampling current flowing through a primary side of a transformer of said LED driver by a sensing resistor arranged in series with a switching device at said primary side of said LED driver, and generating a sensing voltage signal in response thereto; b) sampling and holding said sensing voltage signal to obtain a peak value of said sensing voltage signal; c) generating an averaging signal from said peak value of said sensing voltage signal, a voltage reference, and an on time of output diode of said LED driver; d) generating a regulating signal by compensating said averaging signal; and e) generating a controlling signal based on said regulating signal to control operation of said switching device of said LED driver to maintain a substantially constant output current.
 10. The method of claim 9, wherein the generating said averaging signal comprises: a) generating a current reference based on said voltage reference; b) generating a peak value current of said sensing voltage signal; and c) generating said averaging signal using said peak value current, said current reference, and said on time of said output diode.
 11. A controlling method for a light-emitting diode (LED) configured in a flyback topology, the method comprising: a) sampling current flowing through a primary side of a transformer of said LED driver by a sensing resistor arranged in series with a switching device at said primary side of said LED driver, and generating a sensing voltage signal in response thereto; b) averaging said sensing voltage signal in accordance with an on time of an output diode and a switching cycle to generate an averaging signal; c) calculating an error between said averaging signal and a voltage reference to generate an error signal; d) generating a regulating signal by compensating said error signal; and e) generating a controlling signal to control operation of a switching device of said LED driver based on said regulating signal to maintain a substantially constant output of said LED driver.
 12. The method for an LED driver of claim 11, wherein: a) said voltage reference is in direct proportion with an expected output current value of said sensing resistor and turns of a secondary winding of said transformer, and in inverse proportion with turns of a primary winding of said transformer; and b) said averaging signal is in inverse proportion with said on time of output diode and said sensing voltage signal, and in inverse proportion with said switching cycle. 